import { createApp } from 'vue';
import { RouterView, createRouter, createWebHashHistory } from 'vue-router';

import ArticleList from './pages/article-list.vue';
import ArticleDetail from './pages/article-detail.vue';

const routes = createRouter({
    history: createWebHashHistory(),
    routes: [
        { path: '/', component: ArticleList },
        { path: '/article/:id', component: ArticleDetail, props: true },
    ]
})


createApp(RouterView).use(routes).mount('#app');
